package com.zrrd.enumdemo;

public class Season {

//    public static final String Spring = "春天";
//    public static final String Summer = "夏天";
//    public static final String Autumn = "秋天";
//    public static final String Winter = "冬天";


    public static String str = null;

    private Season(String str) {
        this.str = str;
    }//只能在本类中创建实例

    public static final Season SPRING = new Season(" 春天");
    public static final Season SUMMER = new Season("夏天");
    public static final Season AUTUMN = new Season("秋天");
    public static final Season WINTER = new Season("冬天");

    public String getSpring(){
        return  SPRING.toString();
    }

    @Override
    public String toString() {
        return str;
    }
}
